package com.tuling.designpattern.singleton;

/**
 * 静态内部类
 * @author 林瑞涛
 * @date 2021年07月05日 19:29
 */
public class Holder {

    //构造器私有
    public Holder() {

    }

    public static Holder getInstance(){
        return InnerClass.HOLDER;
    }

    public static class InnerClass{
        private static final Holder HOLDER = new Holder();
    }

}
